#ifndef SYSCONFIGHANDLER_H
#define SYSCONFIGHANDLER_H

#include <QObject>

class ConfigThread;

class SysConfigHandler : public QObject
{
    Q_OBJECT
    explicit SysConfigHandler(QObject *parent = 0);
public:
    static SysConfigHandler &instance();

    QString deviceName() const;
    void setDeviceName(const QString &deviceName);

    QString IP() const;
    void setIP(const QString &IP);

    bool active() const;
    void setActive(bool active);

    int registered() const;
    void setRegistered(int registered);

    int deviceStatus() const;
    void setDeviceStatus(int deviceStatus);

    QString version() const;
    void setVersion(const QString &version);

    QString mask() const;
    void setMask(const QString &mask);

    QString gateway() const;
    void setGateway(const QString &gateway);

    QString callRate() const;
    void setCallRate(const QString &callRate);

    QString dns() const;
    void setDns(const QString &dns);

private:
    QString m_deviceName;
    QString m_IP;
    QString m_mask;
    QString m_gateway;
    QString m_version;
    QString m_dns;
    bool m_active;
    int m_registered;
    int m_deviceStatus;
    QString m_callRate;
};

#endif // SYSCONFIGHANDLER_H
